from django.db import models

# Create your models here.
class size(models.Model):
	name = models.CharField(max_length = 20, unique = True)
	
	def __unicode__(self):
		return self.name
	def __eq__(self,other):
		try:
			return self.name == other.name
		except:
			return False

class trait(models.Model):
	""" 
	A trait will either be had by a monster, or will be a 
	requirement for another object, skill, etc
	"""
	name = models.CharField(max_length =20, unique = True)
	description = models.CharField(max_length=50, default='')
	
	def __unicode__(self):
		return self.name

